package com.joysuch.wwyt.bp.bean.risk;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @Author ZhangDong
 * @Date 2020/3/4 11:22
 */
@Data
public class BpTeamSpecialBean {

    public BpTeamSpecialBean() {
    }

    public BpTeamSpecialBean(String specialWorkName, Integer sum) {
        this.specialWorkName = specialWorkName;
        this.sum = sum;
    }

    @ApiModelProperty("特种作业名称")
    @NotEmpty(message = "特种作业名称不能为空")
    private String specialWorkName;

    @ApiModelProperty("数量")
    @NotNull(message = "数量不能为空")
    private Integer sum;
}
